from django.conf.urls.defaults import *

urlpatterns = patterns('cssjslib.qa.views',
    url(r'^$', 'qa',  name='qa-main'), 
    url(r'^sort/(?P<option>.+)/$',  'qa',  name='qa-sort'), 
    url(r'^ask/$',  'ask',  name='qa-ask'), 
    url(r'^view/(?P<slug>.+)/$',  'view',  name='qa-view'),
    url(r'^view_question/(?P<question_id>.+)/$',  'view_question',  name='qa-view-question'), 
    url(r'^view_answer/(?P<answer_id>.+)/$',  'view_answer',  name='qa-view-answer'), 
    url(r'^edit/(?P<slug>.+)/$',  'edit',  name='qa-edit'), 
    url(r'^edit_answer/(?P<answer_id>.+)/$',  'edit_answer',  name='qa-edit-answer'), 
    url(r'^answer/(?P<slug>.+)/$',  'answer',  name='qa-answer'), 
    url(r'^accept_answer/(?P<answer_id>.+)/$',  'accept_answer',  name='qa-accept-answer'), 
)
